<template>
  <el-card>
    <div class="box">
      <img :src="userData.userInfo.avatar" alt="" />
      <div class="box-title">
        <h3>{{ getTime() }}，{{ userData.userInfo.name }}</h3>
      </div>
    </div>
  </el-card>
  <div class="card-buttom">
    <svg-icon name="welcome" width="500px" height="500px"></svg-icon>
  </div>
</template>
<script lang="ts" setup>
// 获取用户相关的仓库
import userStore from '@/store/modules/user'
import { getTime } from '@/utils/time'
let userData = userStore()
</script>
<style lang="scss" scoped>
.box {
  display: flex;
  align-items: center;
  img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
  }
  .box-title {
    margin-left: 20px;
    font-size: 30px;
    font-size: 700;
  }
}
.card-buttom {
  display: flex;
  justify-content: center;
}
</style>
